package com.shi.enums;

import lombok.Getter;


@Getter
public enum AuthCodeEnum {


    NO_NEED_PERM("", "不需要权限"),

    PERM_MENU_SELECT("perm:menu:select", "查询菜单"),
    PERM_MENU_INSERT_DELETE_UPDATE("perm:menu:insert-delete-update", "新增/删除/修改菜单"),
    PERM_ROLE_SELECT("perm:role:select", "查询角色"),
    PERM_ROLE_INSERT_DELETE_UPDATE("perm:role:insert-delete-update", "新增/删除/修改角色"),
    PERM_ROLE_GIVE_MENUS("perm:role:giveMenus", "为角色分配权限"),
    PERM_ACCOUNT_SELECT("perm:account:select", "查询用户"),
    PERM_ACCOUNT_INSERT_DELETE_UPDATE("perm:account:insert-delete-update", "新增/删除/修改用户"),
    PERM_ACCOUNT_GIVE_ROLES("perm:account:giveRoles", "为用户分配角色");
    private String code;
    private String desc;

    AuthCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
